Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug where screen would 'bounce' when presenting in a modal dialog ... #37

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

rrossinvicara
Copy link

...on iPad with soft keyboard active in landscape. This was caused by the input text field to lose its first responder status, and then requesting it immediately after.

…og on iPad with soft keyboard active in landscape.
@@ -183,7 +183,11 @@ - (void)layoutTokensAndInputWithFrameAdjustment:(BOOL)shouldAdjustFrame
{
[self.collapsedLabel removeFromSuperview];
BOOL inputFieldShouldBecomeFirstResponder = self.inputTextField.isFirstResponder;
[self.scrollView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
[self.scrollView.subviews enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
if (obj == self.inputTextField) return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for the pull-request. Instead of early return, can it be:

if (obj != self.inputTextField) {
    [obj removeFromSuperview];
}

:octocat:

@rrossinvicara
Copy link
Author

That's a matter of style, of course. Feel free to use whichever coding style best fits the rest of the project.

@rrossinvicara
Copy link
Author

Any ETA on when this will be merged? I'd love to do a pod update, but I can't because of this breaking bug.

@ayanonagon
Copy link
Contributor

@rrossinvicara If you can make the style-change that I commented with that would be great. If getting this bug fixed is urgent, you can modify your Podfile as follows:

pod 'VENTokenField', :git => 'https://github.com/rrossinvicara/VENTokenField.git'

@rrossinvicara
Copy link
Author

The style has been updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants